import { IsString } from 'class-validator'
import { IsOptionalString } from '@boticord/common/is-optional-string.decorator'

export class CacheGuildDto {
  @IsString()
  declare name: string

  @IsString()
  declare id: string

  // guild icon hash
  @IsString()
  @IsOptionalString()
  declare avatar?: string

  // guild members count
  @IsString()
  declare members: number

  @IsString()
  declare ownerID: string
}